package com.example.choupaiapp.main.bean

import java.io.Serializable

/**
 * Created by ASUS on 2019/11/14.
 */

class WechatLoginUserInfoBean : Serializable {

    /**
     * openid : OPENID
     * nickname : NICKNAME
     * sex : 1
     * province : PROVINCE
     * city : CITY
     * country : COUNTRY
     * headimgurl : http://wx.qlogo.cn/mmopen/g3MonUZtNHkdmzicIlibx6iaFqAc56vxLSUfpb6n5WKSYVY0ChQKkiaJSgQ1dZuTOgvLLrhJbERQQ4eMsv84eavHiaiceqxibJxCfHe/0
     * privilege : ["PRIVILEGE1","PRIVILEGE2"]
     * unionid :  o6_bmasdasdsad6_2sgVt7hMZOPfL
     */

    private var openid: String? = null
    private var nickname: String? = null
    private var sex: Int = 0
    private var province: String? = null
    private var city: String? = null
    private var country: String? = null
    private var headimgurl: String? = null
    private var unionid: String? = null
    private var errcode: Int = 0
    private var privilege: List<String>? = null

    fun getErrcode(): Int {
        return errcode
    }

    fun setErrcode(errcode: Int) {
        this.errcode = errcode
    }

    fun getOpenid(): String? {
        return openid
    }

    fun setOpenid(openid: String) {
        this.openid = openid
    }

    fun getNickname(): String? {
        return nickname
    }

    fun setNickname(nickname: String) {
        this.nickname = nickname
    }

    fun getSex(): Int {
        return sex
    }

    fun setSex(sex: Int) {
        this.sex = sex
    }

    fun getProvince(): String? {
        return province
    }

    fun setProvince(province: String) {
        this.province = province
    }

    fun getCity(): String? {
        return city
    }

    fun setCity(city: String) {
        this.city = city
    }

    fun getCountry(): String? {
        return country
    }

    fun setCountry(country: String) {
        this.country = country
    }

    fun getHeadimgurl(): String? {
        return headimgurl
    }

    fun setHeadimgurl(headimgurl: String) {
        this.headimgurl = headimgurl
    }

    fun getUnionid(): String? {
        return unionid
    }

    fun setUnionid(unionid: String) {
        this.unionid = unionid
    }

    fun getPrivilege(): List<String>? {
        return privilege
    }

    fun setPrivilege(privilege: List<String>) {
        this.privilege = privilege
    }
}
